package cn.gemiman.daoyi.module.iot.open.jhl.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

@Schema(description = "管理后台 - 设置按钮语音播报文字 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class DeviceSetButtonTextMsgReqVO extends InnoprojhlOpenApiReqBaseVO {

    @Schema(description = "设备唯一标识：设备 mac 地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "设备唯一标识不能为空")
    private String deviceId;
    @Schema(description = "下发语音播报内容：两个字符串组成的数组,第 1个字符串是按钮 1 的语音播报内容，第 2 个字符串是按钮 2的语音播报内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @Size(min = 2, max = 2, message = "下发语音播报内容数量必须为 2")
    @NotEmpty(message = "下发语音播报内容不能为空")
    private List<String> bcTxts;
}
